package com.czl.module_user.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.czl.base.data.bean.RepairBean
import com.czl.base.data.bean.ReportListBean
import com.czl.base.data.bean.ScoreListBean
import com.czl.module_user.R
import com.czl.module_user.databinding.ItemScoreBinding

/**
 *
 * @Description:
 * @Author: XCH
 * @CreateDate: 2021/12/10 11:38
 */
class ScoreAdapter :
    BaseQuickAdapter<ScoreListBean.Data, BaseDataBindingHolder<ItemScoreBinding>>(
        R.layout.item_score
    ) {

    override fun convert(
        holder: BaseDataBindingHolder<ItemScoreBinding>,
        item: ScoreListBean.Data
    ) {
        holder.dataBinding?.apply {
            data = item
            adapter = this@ScoreAdapter
            executePendingBindings()
        }
    }
}